﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniErp.Entity.DataStreams.DOs.Notice
{
    /// <summary>
    /// 用户公告回复表（记录用户对公告的回复信息，新入职的用户不需要对以前的公告负责）
    /// </summary>
    [Table("UserInfoNoticesReply")]
    public class UserInfoNoticesReply : BaseEntity
    {
        /// <summary>
        /// 公告回复表编号 
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [ConcurrencyCheck]
        public int UserNoticesId { get; set; }

        /// <summary>
        /// 用户是否回复此公告
        /// </summary>
        public bool IsReply { get; set; }
        /// <summary>
        /// 用户回复内容
        /// </summary>
        public string Reply { get; set; }
        #region
        /// <summary>
        /// 用户编号
        /// </summary>
        public int userInfoId { get; set; }
        public virtual UserInfo userInfo { get; set; }
        /// <summary>
        /// 公告编号
        /// </summary>
        public int NoticeId { get; set; }
        public virtual Notices Notice { get; set; }
        #endregion

    }
}
